package zhihuilan.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.util.ObjectUtils;
import zhihuilan.entity.MyContentInfo;
import zhihuilan.mapper.MyContentInfoMapper;
import zhihuilan.service.MyContentInfoService;

import java.util.List;

@Service
public class MyContentInfoServiceImpl extends ServiceImpl<MyContentInfoMapper, MyContentInfo> implements MyContentInfoService {


    /**
     * 按照ID查询对应的购物车物品
     */
    @Override
    public MyContentInfo selectById(Integer id) {
        if (ObjectUtils.isEmpty(id)) {
            return null;
        }
        return this.baseMapper.selectById(id);
    }
}
